package cn.bone.cloud.compute.feign.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Administrator on 2017/11/2.
 */
@FeignClient(value = "compute-server",fallback = ComputeClientHystrix.class)
public interface ComputeClient {

    @RequestMapping("/add")
    Integer add(@RequestParam("a") Integer a,
                @RequestParam("b") Integer b);
}
